package com.shijie.newvideo;

import java.io.Serializable;

/**
 * 服务端接口返回异常的处理
 * Created by zhangdunxiang on 17/9/19.
 */

public class ApiException extends Exception implements Serializable {
    public int code;
    public String message;

    public ApiException(Throwable throwable, int code) {
        super(throwable);
        this.code = code;

    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}


